<?php


include_once '/class_master/db.class.php';
include_once '/class_master/parcourir.class.php';

class check
{
	
	
	public function __construct()
	{
		
	}

	public function get_check_item ($item,$id)
	{
		$database = new db();
		$retun_var = new parcourir();
		$test = "";
		$req = $database->select_status($item," id_".$item." = ".$id." ");

		$test = $retun_var->get_unique($req);
		
		if($test == '0')
		{$status = 'OK';}
		else
		{$status = 'KO';}
			
		return $status;
		
	}
}